<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="Food_model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
  String foodid= request.getParameter("foodid");
Food fd = Food.getFoodById(foodid);
%>
修改商品信息<hr>
<form action="update" method="post">
商品编号:<input type="text" name="foodid" value="<%=fd.getFoodid() %>"><br>
商品名称:<input type="text" name="foodname" value="<%=fd.getFoodname() %>"><br>
计量单位:<input type="text" name="foodunit" value="<%=fd.getFoodunit() %>"><br>
商品价格:<input type="text" name="foodprice" value="<%=fd.getFoodprice() %>"><br>
<input type="submit" value="提交">
</form>
</body>
</html>